package com.apphome.rbac.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the t_users database table.
 * 
 */
@Entity
@Table(name="t_users")
public class User implements Serializable {
	private static final long serialVersionUID = 1L;
	private String userId;
	private Timestamp createTime;
	private Object enabled;
	private Timestamp lastupdateTime;
	private BigInteger organization;
	private String userAccount;
	private String userDesc;
	private String userDuty;
	private String userEmail;
	private String userName;
	private String userPassword;
	private String userPhone;
	private Object userSex;
	private List<UsersRole> usersRoles;

	public User() {
	}


	@Id
	@Column(name="USER_ID")
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}


	@Column(name="CREATE_TIME")
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}


	public Object getEnabled() {
		return this.enabled;
	}

	public void setEnabled(Object enabled) {
		this.enabled = enabled;
	}


	@Column(name="LASTUPDATE_TIME")
	public Timestamp getLastupdateTime() {
		return this.lastupdateTime;
	}

	public void setLastupdateTime(Timestamp lastupdateTime) {
		this.lastupdateTime = lastupdateTime;
	}


	public BigInteger getOrganization() {
		return this.organization;
	}

	public void setOrganization(BigInteger organization) {
		this.organization = organization;
	}


	@Column(name="USER_ACCOUNT")
	public String getUserAccount() {
		return this.userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}


	@Column(name="USER_DESC")
	public String getUserDesc() {
		return this.userDesc;
	}

	public void setUserDesc(String userDesc) {
		this.userDesc = userDesc;
	}


	@Column(name="USER_DUTY")
	public String getUserDuty() {
		return this.userDuty;
	}

	public void setUserDuty(String userDuty) {
		this.userDuty = userDuty;
	}


	@Column(name="USER_EMAIL")
	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}


	@Column(name="USER_NAME")
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}


	@Column(name="USER_PASSWORD")
	public String getUserPassword() {
		return this.userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}


	@Column(name="USER_PHONE")
	public String getUserPhone() {
		return this.userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}


	@Column(name="USER_SEX")
	public Object getUserSex() {
		return this.userSex;
	}

	public void setUserSex(Object userSex) {
		this.userSex = userSex;
	}


	//bi-directional many-to-one association to UsersRole
	@OneToMany(mappedBy="user")
	public List<UsersRole> getUsersRoles() {
		return this.usersRoles;
	}

	public void setUsersRoles(List<UsersRole> usersRoles) {
		this.usersRoles = usersRoles;
	}

}